package com.xy.service;

import com.xy.entity.Student;
import com.xy.mapper.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Service
public class UserService {
    @Autowired
    UserDao userDao;

    public List<Student> findall() {
        return userDao.findAll();
    }


}
